<template>
	<div id="app">
		<router-view></router-view>
	</div>
</template>

<script>
export default {
	name: "App",
	mounted() {
		let str = localStorage.getItem("user");
		if (str) {
			let user = JSON.parse(str);
			this.$store.dispatch("LoginSuccess", user);
		}
	},
};
</script>

<style>
#app {
	height: 100%;
}
</style>
